import request from '@/utils/request'

export function login(data) {
  return request({
    url: '/login/'+data.username+'/'+data.password,
    method: 'get',
  })
}

export function getInfo() {
  return request({
    url: '/getInfo',
    method: 'get',
  })
}

export function logout() {
  return request({
    url: '/logout',
    method: 'get'
  })
}

export function getCurrentUserInfo(){
  return request({
    url: '/user/getCurrentUserInfo',
    method: 'get'
  })
}
